package com.client.ryt.basic;

import java.util.List;

/**
 * Created by Administrator on 2014/7/20.
 */
public class BaseLiteners {
    public interface BaseResponseListener{
        void OnFail(BaseException e);
        void OnSuccess(BaseResponse o);
    }

    public interface ObjectResponseListener extends BaseResponseListener {
        void OnSuccess(Object o);
    }

    public interface IntegerResponseListener extends BaseResponseListener {
        void OnSuccess(int i);
    }

    public interface StringResponseListener  extends BaseResponseListener {
        void OnSuccess(String s);
    }
    public interface ListResponseListener<T> extends BaseResponseListener {
        void OnSuccess(List<T> list);
    }
}
